package com.cash.loan.modular.cash.dao;

import com.cash.loan.modular.cash.model.ProductAdPicture;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产品轮播图 Mapper 接口
 * </p>
 *
 * @author yangbo123
 * @since 2018-07-09
 */
public interface ProductAdPictureMapper extends BaseMapper<ProductAdPicture> {

    /**
     * 获得启用的轮播
     * @return
     */
    List<ProductAdPicture> getUsedAdPicture(@Param("type") String type);

    /**
     * 通过类型得到一个广告
     * @param type
     * @return
     */
    ProductAdPicture getUsedLimitAd(@Param("type") String type);
}
